ExamPlay Light Logo
Log Masuk

Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 8 - No. 26)

In the bubble sort algorithm, what causes a swap of two numbers?
The values are equal.
The value of index is an odd number.
The second value in the list is greater than the first.
The values are in the incorrect order.

Penjelasan

Two values are swapped if they are in the wrong order, for example, one is greater than the other and they're in the wrong sequence.

Komen (0)

Log Masuk Untuk Mengulas
Iklan
BrainBehindX Inc Logo
©2026; Dikuasakan Oleh BrainBehindX Inc